#include "led.h"
#include "pwm.h"
#include "uart0.h"
#include "gpio.h"
#include "key_it.h"
void delay_ms(unsigned int ms)
{
	unsigned int i,j;
	for(i = 0; i < ms; i++)
		for(j = 0; j < 1800; j++);
}

int main()
{
	// 调用按键中断的初始化函数 GPIO  GIC
	hal_gpio_key_init();
	hal_gicd_key_init();
	hal_gicc_key_init();
    hal_led_init();

    hal_uart0_init();
    
    uart_send_string("init succ...\n");

	while(1)
	{
		// key按键触发中断
	}
	return 0;
}
